package com.project.collectAPI.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.collectAPI.entity.Users;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * (Users)表数据库访问层
 *
 * @author makejava
 * @since 2023-03-04 21:55:23
 */
@Mapper
public interface UsersDao extends BaseMapper<Users> {
    @MapKey("id")
    @Select("SELECT * FROM users")
    List<Map<String,Object>> selectPageVo(IPage<Users> page);
}

